package pub.wkq.bo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * <h1>登录或注册</h1>
 *
 * @author 王开琦
 * @date 2023/6/5
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RegisterOrLoginBO {
    /**
     * 手机号，11 位手机号，不为空
     */
    @NotEmpty(message = "手机号不能为空")
    private String mobile;
    @NotEmpty(message = "验证码不能为空")
    @Length(min = 6, max = 6, message = "验证码长度不正确")
    private String smsCode;
}
